<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('App\Http\Controllers')->group(function() {
	Route::get('/', 'LoginController@home')->name('home');
	
	Route::get('/login', 'LoginController@showLoginFrom')->name('login');
	Route::post('/login', 'LoginController@login');
	Route::post('/logout', 'LoginController@logout')->name('logout');
	Route::any('/socialLogin', 'LoginController@socialLogin')->name('socialLogin');
	
	Route::get('/register', 'LoginController@showRegisterFrom')->name('register');
	Route::post('/register', 'LoginController@register');
	
	Route::get('/group', 'Controller@getChatGroup');
});



Route::get('/client1', 'App\Http\Controllers\Controller@client1');
Route::get('/client2', 'App\Http\Controllers\Controller@client2');
Route::get('/admin', 'App\Http\Controllers\Controller@admin');
Route::get('/staff', 'App\Http\Controllers\Controller@staff');
Route::get('/kill', 'App\Http\Controllers\KillController@index');

Route::get('/kill/redisLockInit', 'App\Http\Controllers\KillController@redisLockInit')->name('redisLockInit');
Route::get('/kill/redisLock', 'App\Http\Controllers\KillController@redisLock')->name('redisLock');
Route::get('/kill/redisQueueInit', 'App\Http\Controllers\KillController@redisQueueInit')->name('redisQueueInit');
Route::get('/kill/redisQueue', 'App\Http\Controllers\KillController@redisQueue')->name('redisQueue');
Route::get('/kill/normal', 'App\Http\Controllers\KillController@normal')->name('normal');